//
//  BookModel.h
//  CoreDataDemo
//
//  Created by liuxiang on 2018/1/6.
//  Copyright © 2018年 liuxiang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <WCDB/WCDB.h>

@interface BookModel : NSObject

@property (assign, nonatomic) NSUInteger bookId;
@property (copy, nonatomic) NSString *bookISBN;
@property (copy, nonatomic) NSString *bookName;
@property (assign, nonatomic) double bookPrice;
@property (copy, nonatomic) NSString *bookAuthor;
@property (assign, nonatomic) uint16_t bookNum;
@property (copy, nonatomic) NSString *bookPub;
@property (copy, nonatomic) NSString *bookPubTime;
@property (copy, nonatomic) NSString *bookPhoto;
@property (copy, nonatomic) NSString *bookDescribe;
@property (assign, nonatomic) uint32_t bookPage;
@property (assign, nonatomic) uint16_t bookSale;
@property (assign, nonatomic) uint16_t bookHits;
@property (copy, nonatomic) NSString *bookStorageTime;
@property (assign, nonatomic) uint16_t bookShowIndex;
@property (copy, nonatomic) NSString *bookOther;
@property (assign, nonatomic) uint32_t childTypeId;


@end

@interface BookModel (WCTTableCoding) <WCTTableCoding>

WCDB_PROPERTY(bookId)
WCDB_PROPERTY(bookISBN)
WCDB_PROPERTY(bookName)
WCDB_PROPERTY(bookPrice)
WCDB_PROPERTY(bookAuthor)
WCDB_PROPERTY(bookNum)
WCDB_PROPERTY(bookPub)
WCDB_PROPERTY(bookPhoto)
WCDB_PROPERTY(bookPubTime)
WCDB_PROPERTY(bookDescribe)
WCDB_PROPERTY(bookPage)
WCDB_PROPERTY(bookSale)
WCDB_PROPERTY(bookHits)
WCDB_PROPERTY(bookStorageTime)
WCDB_PROPERTY(bookShowIndex)
WCDB_PROPERTY(bookOther)
WCDB_PROPERTY(childTypeId)


@end
